import request from '@/utils/request'

// 查询点位打卡列表
export function listTaskPoint(query) {
  return request({
    url: '/patrol/taskPoint/list',
    method: 'get',
    params: query
  })
}

// 查询点位打卡详细
export function getTaskPoint(id) {
  return request({
    url: '/patrol/taskPoint/' + id,
    method: 'get'
  })
}

// 新增点位打卡
export function addTaskPoint(data) {
  return request({
    url: '/patrol/taskPoint',
    method: 'post',
    data: data
  })
}

// 修改点位打卡
export function updateTaskPoint(data) {
  return request({
    url: '/patrol/taskPoint',
    method: 'put',
    data: data
  })
}

// 删除点位打卡
export function delTaskPoint(id) {
  return request({
    url: '/patrol/taskPoint/' + id,
    method: 'delete'
  })
}
